function collapse(id)
{
	$('#' + id).slideToggle('fast');
}

function redirect(url)
{
	window.location = url;
	return false;
}

$('.button').live('click',   
	function()  
	{
	if($('#notes').val() == '')
	{
		$('#notes').val('You may enter notes here for other dashboard users to read, These notes can be overwritten by any dashboard user.');
	}
	 $.ajax({
	   type: 'POST',
	   url: 'index.php?cmd=notepad',
	   data: 'note=' + $('#notes').val(),
	   success: function(msg)
	   {
		 $('div.errors').html('<div class="notice">' + msg + '</div>').fadeIn('slow',
			 function callback() {
			  $('div.notice').fadeOut(5000);
			}
		 );
	   }
	 });
	}  
);
$('.resetlogin').live('click',   
	function()  
	{
		$("#login").load("index.php?cmd=resetlogin");
	}  
); 